The check-commit-log is quick, and to get a result early is helpful as
one can then more quickly check for failures via the report provided via
the JUnit report.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1491>
GIT_DEPTH: "100"
script:
- ./.gitlab-ci/check-commit-log.sh
- only:
- - merge_requests
+ <<: *only_default
artifacts:
expire_in: 1 week
paths:
build:
image: registry.gitlab.gnome.org/gnome/mutter/master:v4
stage: build
- needs: []
+ needs: ["check_commit_log"]
before_script:
- .gitlab-ci/checkout-mutter.sh
- meson mutter mutter/build --prefix=/usr -Dtests=false
flatpak:
stage: build
- needs: []
+ needs: ["check_commit_log"]
variables:
SUBPROJECT: "subprojects/extensions-app"
# Your manifest path
#!/usr/bin/env bash
if [ -z "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" ]; then
- echo Cannot review non-merge request
- exit 1
+ echo This is not a merge request, skipping
+ exit 0
fi
git fetch $CI_MERGE_REQUEST_PROJECT_URL.git $CI_MERGE_REQUEST_TARGET_BRANCH_NAME